package org.jdbc;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;

import org.vo.Score;
import org.vo.Student;

public class ScoreJdbc {
	private Connection conn=null;
	private PreparedStatement psmt=null;
	private ResultSet rs= null;
	public ScoreJdbc(){
		
	}
	public Connection getConn(){
		try{
			if(this.conn==null||this.conn.isClosed()){
				DBConn mc=new DBConn();
				this.conn=mc.getConn();
			}
		}catch(SQLException e){
			e.printStackTrace();
		}
		return conn;
	}
	
	public List showCourse() throws SQLException{
		return null;
	}
	public List<Student> showStudent(){
		return null;
	}
	public Score addScore(Score score){
		return null;
	}
}